/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package loginPackage;

/**
 *
 * @author Alberto
 */
import java.sql.*;


public class ConnectionManager {
static Connection con;
      static String url;

      public static Connection getConnection()
      {

         try
         {
            String url = "jdbc:odbc:" + "UAODataSource";
            

            Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");

            try
            {
               con = DriverManager.getConnection(url,"username","password");

           

            }

            catch (SQLException ex)
            {
               ex.printStackTrace();
            }
         }

         catch(ClassNotFoundException e)
         {
            System.out.println(e);
         }

      return con;
}
}
